package Hashstr

func Hash(key string) int {
	var h int64=0
	for _,v:=range key{
		h=h<<7+h<<1+h+int64(v)
	}
	return int(h%11)
}